package com.ai.wxy.spring.jpa.test.service;

import com.ai.spring.common.util.Page;
import com.ai.spring.data.jpa.dao.IJpaDao;
import com.ai.wxy.spring.jpa.test.entity.MgRsconf;
import com.ai.wxy.spring.jpa.test.query.jpa.MgRsconfQueryCriteria;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 内容配置Service
 *
 * @author 石头
 * @Date 2019/10/22
 * @Version 1.0
 **/
@Service
public class MgRsconfService {
    @Autowired
    private IJpaDao<MgRsconf> msRsconfDao;
    public List<MgRsconf> queryByCriteria(MgRsconfQueryCriteria queryCriteria,MgRsconf rsconf){
        List<MgRsconf> result = msRsconfDao.queryByCriteria(queryCriteria,rsconf);
        return result;
    }

    public Page<MgRsconf> queryByCriteria(MgRsconfQueryCriteria queryCriteria,MgRsconf rsconf,Page<?> page){
        Page<MgRsconf> result = msRsconfDao.queryByCriteria(queryCriteria,rsconf,page);
        return result;
    }

}
